Release 10.1A: OpenEdge Development:
Progress 4GL Handbook
Character-mode considerations
Here is some information that will be useful to you if you need to run your application in character-mode:
In a character interface, use the
ENTER-MENUBARkey function (usually mapped to F3) to give focus to the menu bar. You can then use the left and right arrow keys to position to a submenu label within the menu. Press RETURN to pull down the menu and the up and down arrow keys to position to a menu item. Press RETURN again to choose the menu item.The choice of key labels for accelerators is limited by the keys available on your keyboard. For example, some terminals have no F2 key, but might have a PF2 key or require a CTRL key combination to emulate common F2 key functionality.
For portability, you can use the
KBLABELfunction to specify the accelerator key label, as shown in the following example:
This function lets you use a portable Progress key function, such as
HELP, to identify a valid key label for the current keyboard or terminal type. The key label is one that is associated with the key function for the terminal type in the current environment. In Windows, the current environment might reside in the registry or in an initialization file.However, note that the current environment can (and often does) define more than one key label for a given Progress key function. The
KBLABELfunction returns the first such definition specified for the terminal type. For example, some terminal types define F2 and also ESC+? as theHELPkey function. In this case, usingKBLABEL(“HELP”)changes F2 to a menu item accelerator (losing itsHELPkey function), but leaves ESC+? as the one remainingHELPkey function.There are two types of invalid menu accelerators:
If you specify an unsupported key label, such as ALT in ALT+F9, Progress substitutes a supported key label in its place. Thus, Progress might substitute ESC+F9 for ALT+F9 as the accelerator definition.
However, an accelerator like ESC+F9 might not work at run time. In this case, ESC+F9 generates unrecognizable keyboard code sequences that fail to fire the appropriate Progress event. The terminal might also indicate the failure with a beep or other warning signal.
When in doubt, specify the menu accelerator using the terminal-portable
KBLABELfunction.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |